<?php 
namespace Builder;
use Builder\parts\Vehicle;
class Director
{
    public function build(BuilderInterface $builder):Vehicle
    {
        $builder->createVehicle();
        $builder->addDoors();
        $builder->addEngine();
        $builder->addWheel();
        return $builder->getVehicle();
    }
}